package com.zytlifeservice.repository.pay;

import com.zytlifeservice.domain.pay.WaterCoalOrder;
import com.zytlifeservice.domain.pay.WiredTvRechargeOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 有线电视持久类
 * Created by Administrator on 2017/6/3.
 */
@Repository
public interface WiredTvRechargeOrderRepository extends JpaRepository<WiredTvRechargeOrder,Long>{
    public WiredTvRechargeOrder findByOutTradeNo(String outTradeNo);

    public WiredTvRechargeOrder findByOutTradeNoAndUserId(String outTrade, Long userId);

    public List<WiredTvRechargeOrder> findAllByUserId(Long userId);
}
